package com.ruoyi.common.core.domain.pojo;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 租房信息对象 rent
 * 
 * @author ruoyi
 * @date 2024-05-15
 */
public class Rent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 房源名称 */
    @Excel(name = "房源名称")
    private String houseDesc;

    /** 租客名称 */
    @Excel(name = "租客名称")
    private String uname;

    /** 租客电话 */
    @Excel(name = "租客电话")
    private String telephone;

    /** 合同起止时间 */
    private Date startTime;

    /** 租金 */
    @Excel(name = "租金")
    private BigDecimal price;

    /** 状态(1:待确认2:已确认3:待付款4:已逾期) */
    private Long status;

    /** 房源主键 */
    private Long houseId;

    /** $column.columnComment */
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHouseDesc(String houseDesc) 
    {
        this.houseDesc = houseDesc;
    }

    public String getHouseDesc() 
    {
        return houseDesc;
    }
    public void setUname(String uname) 
    {
        this.uname = uname;
    }

    public String getUname() 
    {
        return uname;
    }
    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("houseDesc", getHouseDesc())
            .append("uname", getUname())
            .append("telephone", getTelephone())
            .append("startTime", getStartTime())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("houseId", getHouseId())
            .append("userId", getUserId())
            .toString();
    }
}
